package com.reggie.controller;

import com.reggie.entity.user;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/swagger")
public class SwaggerTestController {

    @GetMapping("/test")
    public user returnUser() {
        user user = new user();
        user.setName("唐志峰");
        user.setPhone("18779351586");
        user.setAvatar("https://www.tzfcw.top/images/1.jpg");
        return user;
    }
}
